package com.lihepeng.leecode.work;

public interface NameStrategy {
    String getName(String origin);
    default String getNameV2(NameVo nameVo){
        return getName(nameVo.name);
    }

    static class NameVo{
        private String name;
        private String age;

        public String getName() {
            return name;
        }

        public String getAge() {
            return age;
        }

        public NameVo(String name, String age){
            this.name = name;
            this.age = age;
        }
    }

}
